#ifndef _PACE_DETECT_H_
#define _PACE_DETECT_H_
#include "stdint.h"
#include "stm32f1xx_hal.h"
struct pace_struct
{


	int real,imag;
	int input_store[4],aver1_store[4];
	int Sum1,Sum2;
	short index ;
	int x0[5];
	long long Amp0 ;
	long long  Amp , Diff;

	long long pInput[6];
	long long Sum;
	short index0;

	short timeSinceMax,preBlankCnt;
	long long lastDatum,max,newPACE,tempPACE;
	unsigned int couter_pace,couter_pace_old;


};
char PACEdet_16KHz( int data );

#endif